package com.xjl.aI.controller;

import com.xjl.aI.entity.AiMessageRes;
import com.xjl.aI.service.AiMessageResService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("alarm/ai")
public class AiMessageResController {

    @Resource
    AiMessageResService aiMessageResService;

    @GetMapping("getList")
    public Object getList(){
        return aiMessageResService.list();
    }

}
